package com.woniuxy.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.ArrayList;

@Controller
@RequestMapping("/test")
public class Text {
    @RequestMapping("/testOne")
    public String testOne(Model model){
        System.out.println("TestInterceptor.testOne"+"controller方法正在执行！");
        model.addAttribute("msg","欢迎来到，蜗牛学苑");
        return "index";
    }

    public static void main(String[] args) {
    for (int a=1;; a++){
        for (int b=1;; b++){
            for (int c=1;;c++){
                double d=b+c;
                double e=a+c;
                double f=a+b;
                double j=a/d;
                double i=b/e;
                double x=c/f;

                if(j+i+x==4){
                System.out.println(a+""+b+""+c);
                return;
            }
            }
            }
    }
    }
}
